package com.github.ohtomi.sandbox;

import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;

public interface MyProjectService {
    static MyProjectService getInstance(@NotNull Project project) {
        System.out.println(String.format(
                "interface: %s, project: %s", MyProjectService.class.getCanonicalName(), project.getName()));
        return ServiceManager.getService(project, MyProjectService.class);
    }

    String getMessage();

    String getTitle();
}

@@ -208,16 +208,17 @@
 rvice %7B%0A
+%0A
     stat

Apply code formatter