FileTypeManager.getInstance().getStdFileType("SCSS")
);
public static CssDeclaration createDeclaration(Project project, String selector, String property, String value, boolean important)
{
CSSLanguage cssLanguage = Language.findInstance(CSSLanguage.class);
String text = selector + " {" + property + ":" + value + (important ? " !important" : "") + ";}\n";
PsiFile dummyFile = PsiFileFactory.getInstance(project).createFileFromText("dummy.css", cssLanguage, text);
return findFirstChildOfType(dummyFile, CssDeclaration.class);
}